package cn.sciento.boot.tenant.service.impl;

import cn.sciento.boot.tenant.dto.TenantInitLogDTO;
import cn.sciento.boot.tenant.feign.HiamFeignService;
import cn.sciento.boot.tenant.service.TenantInitLogSendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TenantInitLogSentServiceImpl implements TenantInitLogSendService {
  @Autowired
  private HiamFeignService hiamFeignService;
  
  @Async("tenantInitLogAsyncTaskExecutor")
  public void asyncInsertTenantInitLog(TenantInitLogDTO tenantInitLogDTO) {
    this.hiamFeignService.log(tenantInitLogDTO);
  }
}
